package com.htx.zqs.blesmartmask.bean;

import com.clj.fastble.data.BleDevice;

/**
 * Created by KomoriWu
 * on 2019/7/9.
 */
public class BleDeviceBean {
    private BleDevice bleDevice;
    private int electric;

    public BleDeviceBean(BleDevice bleDevice) {
        this.bleDevice = bleDevice;
        this.electric = -1;
    }

    public BleDevice getBleDevice() {
        return bleDevice;
    }

    public void setBleDevice(BleDevice bleDevice) {
        this.bleDevice = bleDevice;
    }

    public int getElectric() {
        return electric;
    }

    public void setElectric(String electric) {
        this.electric = Integer.parseInt(electric, 16);
    }

    public void setElectric(int electric) {
        this.electric = electric;
    }
}
